const app = getApp()
Component({
  properties: {
    popShow: {
      type: Boolean
    },
    popTitle: {
      type: String
    },
    popContent: {
      type: Object
    },
    popBtn: {
      type: Object
    },
    popTextarea: {
      type: Boolean
    },
    popErrorShow: {
      type: Boolean
    },
    isShowImg: {
      type: Boolean
    },
    popImgSrc: {
      type: Array
    },
    isInkShowImg: {
      type: Boolean
    },
    inkProName: {
      type: String
    },
    inkProSize: {
      type: String
    },
    inkProMaterial: {
      type: String
    },
    inkProIntro: {
      type: String
    },
    isShowContImg: {
      type: Boolean
    },
    popContImgSrc: {
      type: String
    },
  },
  data: {
    lang: app.globalData.language,
    textareaText: '',

    indicatorDots: true,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500,
    indicatorColor: 'rgba(255,255,255,.5)',
    indicatorActiveColor: '#fff',
  },
  methods: {
    textAreaInput: function(e) {
      var myEventDetail = e.detail; // detail对象，提供给事件监听函数
      var myEventOption = {} // 触发事件的选项
      this.triggerEvent('myinputevent', myEventDetail, myEventOption)
    },
    closePopTap: function(e) {
      var myEventDetail = e.target; // detail对象，提供给事件监听函数
      var myEventOption = {} // 触发事件的选项
      this.triggerEvent('myevent', myEventDetail, myEventOption)
    }
  }
});
